# -*- coding: utf-8 -*-
from douban.items import MovieItem
import scrapy


class DoubanspiderSpider(scrapy.Spider):
    name = 'movieSpider'
    allowed_domains = ['movie.douban.com']
    start_urls = ['https://movie.douban.com/subject/34841067/']

    def parse(self, response):
        item = MovieItem()
        item['moiveName'] = response.xpath("//body/div[@id='wrapper']/div[@id='content']/h1/span[1]").extract()
        item['score']=response.xpath("//strong[@class='ll rating_num']").extract()
        return item